package com.example.demo.mapper;

import com.example.demo.entity.StQuestionOption;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface StQuestionOptionMapper extends BaseMapper<StQuestionOption> {
    @Select("SELECT * FROM st_question_option WHERE question_id = #{id}")
    List<StQuestionOption> getByQuestionId(Integer id);
}




